/**
 * Example for daemon thread
 * @author hoang.pt
 * @version $Id: Devil.java 101 2010-08-28 15:50:21Z phantichhoang $
 */

package snippet.theory1;

/**
 * Entity Devil
 * @author hoang.pt
 */
public class Devil extends Thread {
    /**
     * Constructor default, can start demon thread here
     *
     */
    public Devil() {
        this.setDaemon(true);
        start();
    }

    /**
     * Override method, when call start, it will call this function
     */
    @Override
    public void run() {
        //super.run();
        System.out.println(this.isAlive());
    }

    

    
}
